{foreach name="list" item="item"}
<div class="checkbox checkbox-success checkbox-inline">
    <input type="checkbox" class="power_parent_id_52" value="{$item.id}" id="goods_item_id_{$item.id}" name="goods_item_id[]" {if condition="in_array($item['id'],$goodsItemArr)"}checked{/if}>
    <label for="goods_item_id_{$item.id}">
        {$item.goods_name}
    </label>
</div>
{/foreach}